package com.dy.service;

import com.dy.entity.Sale;
import com.dy.service.impl.FeignSellServiceImpl;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Auther: dy
 * @Date: 2022/4/21 - 04 - 21 - 17:46
 * @Description: com.dy.service.impl
 * @version: 1.0
 */
@FeignClient(name="sell",fallback = FeignSellServiceImpl.class)
public interface IFeignSellService {
    @GetMapping("/sell/redisCinema")
    public List<Sale> redisCinema();

    @GetMapping("/sell/selectSaleBySerial/{serial}")
    public Sale selectSaleBySerial(@PathVariable("serial")String serial);

    @GetMapping("/sell/tickets/{cinemaName}")
    public boolean tickets(@PathVariable("cinemaName")String cinemaName);
}
